package com.hlkj.pay.app.merchant.ext.impl.easypay.dto.access;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import java.io.IOException;
/**
 * 图片类型
 * @author HlpayTeam
 * @date 2024/11/27 9:33
 */
public enum PictureListPicType {
	THE_01, THE_02, THE_03, THE_04, THE_05, THE_06, THE_07, THE_08, THE_09, THE_10, THE_11, THE_12, THE_13, THE_14, THE_15, THE_16, THE_17, THE_18, THE_19, THE_20, THE_21, THE_22, THE_23, THE_24, THE_96, THE_97, THE_98, THE_99, XX;
	
	public String toValue() {
		switch (this) {
		case THE_01: return "01";
		case THE_02: return "02";
		case THE_03: return "03";
		case THE_04: return "04";
		case THE_05: return "05";
		case THE_06: return "06";
		case THE_07: return "07";
		case THE_08: return "08";
		case THE_09: return "09";
		case THE_10: return "10";
		case THE_11: return "11";
		case THE_12: return "12";
		case THE_13: return "13";
		case THE_14: return "14";
		case THE_15: return "15";
		case THE_16: return "16";
		case THE_17: return "17";
		case THE_18: return "18";
		case THE_19: return "19";
		case THE_20: return "20";
		case THE_21: return "21";
		case THE_22: return "22";
		case THE_23: return "23";
		case THE_24: return "24";
		case THE_96: return "96";
		case THE_97: return "97";
		case THE_98: return "98";
		case THE_99: return "99";
		case XX: return "XX";
		}
		return null;
	}
	
	public static PictureListPicType forValue(String value) throws IOException {
		if (value.equals("01")) return THE_01;
		if (value.equals("02")) return THE_02;
		if (value.equals("03")) return THE_03;
		if (value.equals("04")) return THE_04;
		if (value.equals("05")) return THE_05;
		if (value.equals("06")) return THE_06;
		if (value.equals("07")) return THE_07;
		if (value.equals("08")) return THE_08;
		if (value.equals("09")) return THE_09;
		if (value.equals("10")) return THE_10;
		if (value.equals("11")) return THE_11;
		if (value.equals("12")) return THE_12;
		if (value.equals("13")) return THE_13;
		if (value.equals("14")) return THE_14;
		if (value.equals("15")) return THE_15;
		if (value.equals("16")) return THE_16;
		if (value.equals("17")) return THE_17;
		if (value.equals("18")) return THE_18;
		if (value.equals("19")) return THE_19;
		if (value.equals("20")) return THE_20;
		if (value.equals("21")) return THE_21;
		if (value.equals("22")) return THE_22;
		if (value.equals("23")) return THE_23;
		if (value.equals("24")) return THE_24;
		if (value.equals("96")) return THE_96;
		if (value.equals("97")) return THE_97;
		if (value.equals("98")) return THE_98;
		if (value.equals("99")) return THE_99;
		if (value.equals("XX")) return XX;
		throw new IOException("Cannot deserialize PictureListPicType");
	}
}
